package com.atwulidun.facade09;

public class Light {
    // 饿汉式
    private static final Light instance = new Light();

    public static Light getInstance() {
        return instance;
    }

    public static void on() {
        System.out.println("Light on");
    }

    public static void off() {
        System.out.println("Light off");
    }

    public static void dim() {
        System.out.println("Light dim");
    }

    public static void bright() {
        System.out.println("Light bright");
    }

}
